package util;
/**
 * @Project : AlgorithmLearning
 * @Package : Leetcode
 * @File : TreeNode.java
 * @Author : WangRuoyu
 * @Date 2023/10/20 21:22
 */

public class TreeNode {
    public int val;
    public TreeNode left;
    public TreeNode right;

    public TreeNode() {
    }

    public TreeNode(int val) {
        this.val = val;
    }

    public TreeNode(int val, TreeNode left, TreeNode right) {
        this.val = val;
        this.left = left;
        this.right = right;
    }
}

// 中序遍历 Q0094
// 先序遍历 Q0144
// 后序遍历 Q0145